<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>值班管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/duty/zlmtDutySheet/">值班列表</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="zlmtDutySheet" action="${ctx}/duty/zlmtDutySheet/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
		    <li><label>姓名：</label>
        		<form:input path="sysUserName" htmlEscape="false" maxlength="64" class="input-medium"/>
        	</li>
			<li><label>开始时间：</label>
					<input name="beginTime" type="text"  maxlength="20" class="input-medium Wdate "
						   value="<fmt:formatDate value="${zlmtDutySheet.beginTime}" pattern="yyyy-MM-dd"/>"
						   onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
			</li>
			<li><label>结束时间：</label>
					<input name="thruTime" type="text"  maxlength="20" class="input-medium Wdate "
						   value="<fmt:formatDate value="${zlmtDutySheet.thruTime}" pattern="yyyy-MM-dd"/>"
						   onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
			</li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="btns"><input type="button" name="changeDuty" value="交班" class="btn btn-primary" onclick="window.location.href='${ctx}/duty/zlmtDutySheet/toChangeDuty'"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>值班人员姓名</th>
				<th>联系手机号</th>
				<th>开始时间</th>
				<th>结束时间</th>
				<th>岗位</th>
				<th>值班记录</th>
				<th>交班记录</th>
				<th>备注信息</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="zlmtDutySheet">
			<tr>
			    <td><a href="${ctx}/duty/zlmtDutySheet/form?id=${zlmtDutySheet.id}">
			        ${zlmtDutySheet.sysUserName}
			        </a>
			    </td>
				<td>
					${zlmtDutySheet.mobilePhoneNum}
				</td>
				<td>
					<fmt:formatDate value="${zlmtDutySheet.beginTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<td>
					<fmt:formatDate value="${zlmtDutySheet.thruTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<td>
                	${zlmtDutySheet.sysRoleName}
                </td>
                <td>
                	${zlmtDutySheet.dutyNote}
                </td>
                 <td>
                	${zlmtDutySheet.uncommitNote}
                </td>

				<td>
					${zlmtDutySheet.remarks}
				</td>
				<td>
    				<a href="${ctx}/duty/zlmtDutySheet/form?id=${zlmtDutySheet.id}">修改</a>
					<a href="${ctx}/duty/zlmtDutySheet/delete?id=${zlmtDutySheet.id}" onclick="return confirmx('确认要删除该值班吗？', this.href)">删除</a>
				</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>